package xyz.xiaoshengfu.xrpc.config;

import java.io.Serializable;

/**
 * <p>Title: RegistryConfig</p>
 * <p>Description: xRPC注册中心配置信息</p>
 * @author xiaoshengfu(2439323118@qq.com)
 * @date 2020年3月24日
 */
public class RegistryConfig implements Serializable {

	private static final long serialVersionUID = 1L;

	private String protocol;
	private String address;
	private Integer port;
	private String password;

	public RegistryConfig() {
		super();
	}

	public RegistryConfig(String protocol, String address, Integer port, String password) {
		super();
		this.protocol = protocol;
		this.address = address;
		this.port = port;
		this.password = password;
	}

	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "RegistryConfig [protocol=" + protocol + ", address=" + address + ", port=" + port + ", password="
				+ password + "]";
	}

}
